advancement revoke @s only dab:use
function dab:system/item_use/use_run_command with entity @s SelectedItem.components."minecraft:custom_data".use

execute as @s[gamemode=creative] run return fail

summon armor_stand ~ ~ ~ {Tags:[tempIU.RI],Marker:true,Invisible:1b,Small:1b,Invulnerable:1b}
item replace entity @n[tag=tempIU.RI] weapon.mainhand from entity @s weapon.mainhand
tag @s add return_item